﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace com.dtn.deals.Sercurity
{
    public class AuthenticationService : IAuthentication
    {
        private int sessionTimeOut = 15;//15 days

        public Ticket Authenticate(AuthenticationRequest authRequest)
        {
            string sessionKey = Guid.NewGuid().ToString().Replace("-", "");
            ArrayList serviceList = new ArrayList();
            Ticket ticket = new Ticket(authRequest.Username, "", DateTime.Now, DateTime.Now.AddDays(sessionTimeOut), sessionKey);
            return ticket;

        }
    }
}
